package com.temc.kafka.controller;

import com.temc.kafka.producer.KafkaNormalProducer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author 辛凤文
 * @since 1.0
 **/
@Slf4j
@RestController
@RequestMapping
public class PushMessageController {

    @Autowired
    private KafkaNormalProducer normalKafkaProducer;

    /**
     * kafka 发送消息
     */
    @GetMapping("/kafka/send")
    public void kafkaSend(){
        normalKafkaProducer.sendKafkaMsg();
    }

}
